listview: Change how binding is done
authorBenjamin Otte <otte@redhat.com>
Mon, 24 Sep 2018 02:42:15 +0000 (04:42 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 May 2020 23:26:45 +0000 (19:26 -0400)
commite5add36a17cb64e6b300830f037d373bb8c0e031
tree2d532fa8735be05eee642eb86cae29fe6641c817
parentfe14181d4e69ac261dd7878ac3d952609866d4b7
listview: Change how binding is done

We now don't let the functions create widgets for the item from the
listmodel, instead we hand out a GtkListItem for them to add a widget
to.

GtkListItems are created in advance and can only be filled in by the
binding code by gtk_container_add()ing a widget.
However, they are GObjects, so they can provide properties that the
binding code can make use of - either via notify signals or GBinding.
gtk/gtklistitem.h
gtk/gtklistitemfactory.c
gtk/gtklistitemfactoryprivate.h
gtk/gtklistview.c
gtk/gtklistview.h
tests/testlistview-animating.c
tests/testlistview.c